<h1 class="register-title">Создание конкурса</h1>

<div class="form">

{WidgetActiveForm id="exposition-add-form" enableAjaxValidation=0 model=$model}
        
        {afErrorSummary}

        <div class="row">
                {afLabelEx property='name'}
                {array assign="attr" maxlength=25 class="small"}
                {afTextField property='name' attr=$attr}
                {afError property='name'}
	</div>

        <div class="row">
                {afLabelEx property='description'}
                {array assign="attr" rows=6 cols=50}
                {afTextArea property='description' attr=$attr}
                {afError property='description'}
	</div> 

        <div class="row">
                {afLabelEx property='from_date'}
                {include file="../layouts/include/dateTimePicker.tpl" model=$model attribute='from_date'}
                {afError property='from_date'}
	</div>

        <div class="row">
                {afLabelEx property='to_date'}
                {include file="../layouts/include/dateTimePicker.tpl" model=$model attribute='to_date'}
                {afError property='to_date'}
	</div>        

	<div class="row buttons">
            {array assign="htmlOptions" class="popup-button submit"}
            {chtmlLink text="<span>Создать</span>" url="#" htmlOptions=$htmlOptions}
	</div>

{/WidgetActiveForm}

</div>